﻿<template>
  <div class="enterprise">
  <div class="titles">
    <img src="../../../assets/homepage/newsFocus.png" class="title_img" >
    <span>入驻企业</span>
  </div>
    <img src="../../../assets/homepage/enterprise/index_left.png" class="index_enterprise_left" v-on:click="(flag>5)&&(flag=flag-5)">
    <img src="../../../assets/homepage/enterprise/index_right.png" class="index_enterprise_right" v-on:click="(((flag+5)/5)-1<=(length)/5)&&(flag=flag+5)">
    <div v-for="(imgs_url,index) of imgs">
      <a :href="imgs_url.pic_link" target="_blank" v-if="index<flag&&index>=flag-5">
      <img :src="imgs_url.pic" alt="加载失败" class="enterprise_logo">
      </a>
    </div>
  </div>
</template>

<script>

  export default {
    name: 'enterprise',
    data() {
      return {
        imgs:[
          {
            pic: require('../../../assets/homepage/enterprise/enterprise_tencent.png'),
            pic_link:"http://www.qq.com/"
          },
          {
            pic: require('../../../assets/homepage/enterprise/enterprise_zhubajie.png'),
            pic_link:"http://183.230.176.35/SWP/face/enterpriseInfo?which=&enterpriseId=14"
          },
          {
            pic: require('../../../assets/homepage/enterprise/enterprise_inventec.png'),
            pic_link:"http://www.inventec.com/"
          },
          {
            pic: require('../../../assets/homepage/enterprise/enterprise_yiyi.png'),
            pic_link:"http://www.yiyitianshi.com/"
          },
          {
            pic: require('../../../assets/homepage/enterprise/enterprise_yijifu.png'),
            pic_link:"https://www.yiji.com/"
          },
          {
            pic: require('../../../assets/homepage/enterprise/enterprise_xiyouji.png'),
            pic_link:"http://www.lxcent.com/"
          },
          {
            pic: require('../../../assets/homepage/enterprise/enterprise_epet.png'),
            pic_link:"http://183.230.176.35/SWP/face/enterpriseInfo?which=&enterpriseId=6"
          },
          {
            pic: require('../../../assets/homepage/enterprise/enterprise_chunqiu.png'),
            pic_link:"http://www.ch.com/"
          },
          {
            pic: require('../../../assets/homepage/enterprise/enterprise_borncn.png'),
            pic_link:"http://www.borncn.com/"
          },
        ],
        flag:5,
        length:9,
      }
    },
    methods:{
    },
  }
</script>

<style scoped>
  .enterprise{
    width: 1004px;
    height: 181px;
    margin: 0 auto;
  }
  .titles{
    width: 1004px;
    height: 52px;
    border-bottom: 1px solid rgb(81,123,192);
  }
  .index_enterprise_left{
    position: absolute;
    top: 843px;
    left: 185px;
  }
  .index_enterprise_right {
    position: absolute;
    top: 843px;
    right: 185px;
  }
  .enterprise_logo{
    margin-left: 27px;
    margin-right: 10px;
    margin-top: 25px;
    padding-top: 3px;
    width: 160px;
    height: 93px;
    float: left;
  }
  span{
    font-weight: bold;
    color:rgb(81,123,192);
    float: left;
    margin-top: 27px;
    margin-left: 7px;
  }
  .title_img{
    float: left;
    height: 25px;
    line-height: 25px;
    margin-top: 23px;
    border: none;
  }
</style>
